import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/system/company/list',
    method: 'get',
    params: data
  })
}
export function listByPage(data) {
  return request({
    url: '/system/company/listByPage',
    method: 'post',
    data: data
  })
}
export function add(data) {
  return request({
    url: '/system/company/add',
    method: 'post',
    data: data
  })
}
export function edit(data) {
  return request({
    url: '/system/company/edit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/system/company/delete',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/system/company/' + data,
    method: 'get'
  })
}
export function getAuthenticationInfo(data) {
  return request({
    url: '/system/company/auth',
    method: 'post',
    data: data
  })
}
export function getRemitInfo(data) {
  return request({
    url: '/system/company/auth/remit',
    method: 'post',
    data: data
  })
}
export function getPricetInfo(data) {
  return request({
    url: '/system/company/auth/remit/price',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/system/company/addOrEdit',
    method: 'post',
    data: data
  })
}
export function sendPhoneCode(data) {
  return request({
    url: '/resource/sms/sendPhoneCode',
    method: 'post',
    data: data
  })
}
export function checkAuthCode(data) {
  return request({
    url: '/system/company/auth/checkAuthCode',
    method: 'post',
    data: data
  })
}
export function legalPersonAuthentication(data) {
  return request({
    url: '/system/company/auth',
    method: 'post',
    data: data
  })
}
export function configKey(data) {
  return request({
    url: '/system/space/configKey/sys.space.restrict',
    method: 'get'
  })
}

